<?php
namespace app\validate;
use think\Validate;

class Common extends Validate
{
	protected $regex = [
		'phone' 		=> '/^1[3456789][0-9]{9}$/',
		'pwd'			=> '/^[0-9a-z]{6,15}$/',
		'float_num'		=> '/^0\.0[1-9]{1}|0\.[1-9][0-9]|[1-9][0-9]{0,7}\.[0-9]{2}$/',
		'int'			=> '/^[1-9][0-9]{0,10}$/',
	];
}